package com.erp.mm.service;

import com.erp.mm.entity.TMmPandianHeadEntity;
import com.erp.mm.entity.TMmPandianItemEntity;
import org.jeecgframework.core.common.service.CommonService;

import java.util.List;

public interface TMmPandianHeadServiceI extends CommonService {
	
 	public <T> void delete(T entity);
	/**
	 * 添加一对多
	 * 
	 */
	public void addMain(TMmPandianHeadEntity tMmPandianHead,
                        List<TMmPandianItemEntity> tMmPandianItemList) ;
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(TMmPandianHeadEntity tMmPandianHead,
                           List<TMmPandianItemEntity> tMmPandianItemList);
	public void delMain(TMmPandianHeadEntity tMmPandianHead);
	
 	/**
	 * 默认按钮-sql增强-新增操作
	 * @param id
	 * @return
	 */
 	public boolean doAddSql(TMmPandianHeadEntity t);
 	/**
	 * 默认按钮-sql增强-更新操作
	 * @param id
	 * @return
	 */
 	public boolean doUpdateSql(TMmPandianHeadEntity t);
 	/**
	 * 默认按钮-sql增强-删除操作
	 * @param id
	 * @return
	 */
 	public boolean doDelSql(TMmPandianHeadEntity t);
}
